<?PHP

$gallery_content=new content;
$gallery_content->where['type']='gallery';
$gallery_content->get_content();
$table='media';
$id='id';
$catch='name';
include 'm/media/p_gallery.php';
printformheader('Content Entry Page',$content_msg);


begin_form($_GET['cmd'],$id);
	p_checkbox('resize_image',$o,$e);
	p_input('resize_x',$o,$e);
	p_input('resize_y',$o,$e);
//	p_input('resize_image',$o,$e);
	
p_checkbox('resize_thumb',$o,$e);
	p_input('resize_x_thumb',$o,$e);
	p_input('resize_y_thumb',$o,$e);
p_select('content',$gallery_content->data,$e,'0','title',$o);

for($x=1;$x<=10;$x++)
{
	?>
	
	<h2>Image # <?PHP echo $x;?></h2>
<?PHP
	p_file('upload_image_'.$x,$o);
}


printsubmit("Save");
end_form($_GET['cmd']);
printformfooter('View Content','?q=m/content/v_content.php',NULL,NULL,NULL,NULL);
?>